package com.ncs.nc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ncs.nc.mapper.UserMapper;
import com.ncs.nc.entity.User;
import com.ncs.nc.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("us")
public class UserServiceImpl extends ServiceImpl<UserMapper,User> implements UserService{

    @Resource
    private UserMapper gm;

    @Override
    public User login(User user) {
        return gm.findByNameAndPwd(user.getUserName(),user.getUserPwd());
    }

}
